// <com.woyouqiu.Copyright>
// --------------------------------------------------------------
// <copyright>上海有求网络科技有限公司 2015</copyright>
// <Solution>MyCompany.MyProject</Solution>
// <Project>MyCompany.MyProject.Application</Project>
// <FileName>ProductOutDto.cs</FileName>
// <CreateTime>2017-04-18 17:33</CreateTime>
// <Author>何苗</Author>
// <Email>hemiao@woyouqiu.com</Email>
// <log date="2017-04-18 17:33" version="00001">创建</log>
// --------------------------------------------------------------
// </com.woyouqiu.Copyright>

using System.Collections.Generic;
using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using AutoMapper;
using Vecen.BangChuang.BangChuang.Areas.DomainDtos;
using Vecen.BangChuang.BangChuang.Areas.Dtos;

namespace Vecen.BangChuang.BangChuang.Products.Dto {

    /// <summary>
    /// 商品详情
    /// </summary>
    [AutoMapFrom(typeof(Product))]
    public class ProductListOutDto: EntityDto,ICityOutDto {

        /// <summary>
        /// 商品类别
        /// </summary>
        public string ProductType { get; set; }

        /// <summary>
        /// 缩略图ID
        /// </summary>
        public int? HeaderImageId { get; set; }


        /// <summary>
        /// 商品分类
        /// </summary>
        public string Category { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 商品状态
        /// </summary>
        public ProductStatus Status { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        public string Description { get; set; }
        
        /// <summary>
        /// 价格
        /// </summary>
        public decimal? Price { get; set; }

        /// <summary>
        /// 代理人ID
        /// </summary>
        public int? AgentId { get; set; }

        /// <summary>
        /// 是否收藏
        /// </summary>
        public bool IsFavorite { get; set; }
        
        /// <summary>
        /// 地址信息
        /// </summary>
        public FullCityOutDto Address { get; set; }
    }
}